var roleQiqiang = {

    /** @param {Creep} creep **/
    run: function(creep) {
        creep.say('AFKclr II', true);

        if(creep.hits == creep.hitsMax){
            creep.memory.building = true;
        }
        else if(creep.hits < creep.hitsMax *0.4){
            creep.memory.building = false;
        }

        if(creep.memory.building == true){
            creep.moveTo(Game.flags['Flag3'].pos);
        }
        else{
            if(!creep.pos.isEqualTo(Game.flags['Flag5'].pos)){
                creep.moveTo(Game.flags['Flag5'].pos);
            }
        }
	}
};

module.exports = roleQiqiang;